﻿using System;
using Codeflows;
using Codeflows.Results;

namespace CodeflowsTests.Scenarios
{
    public class DelayedJump : Codeflow
    {
        public Result Start(long delay)
        {
            return DelayedJump<DelayedJump>(c => c.Resume(), TimeSpan.FromSeconds(10));
        }

        public Result Resume()
        {
            return End();
        }
    }
}
